/**
 * Copyright &copy; 2013-2016 山东易科德软件有限公司   All rights reserved.
 */
package cn.net.ecode.elec.stickers.entity;

import org.hibernate.validator.constraints.Length;

import cn.net.ecode.common.persistence.DataEntity;

/**
 * 便利贴Entity
 * @author AlanShelby
 * @version 2019-09-26
 */
public class ElecConvenientStickers extends DataEntity<ElecConvenientStickers> {
	
	private static final long serialVersionUID = 1L;
	private String btypeId;		// 企业编码
	private String btypeName;		// 企业名称
	private Double electricity;		// 用电量
	private Double price;		// 出价金额
	private String year;		// 签约年限
	
	public ElecConvenientStickers() {
		super();
	}

	public ElecConvenientStickers(String id){
		super();
		this.id = id;
	}

	@Length(min=0, max=64, message="企业编码长度不能超过 64 个字符")
	public String getBtypeId() {
		return btypeId;
	}

	public void setBtypeId(String btypeId) {
		this.btypeId = btypeId;
	}
	
	@Length(min=0, max=255, message="企业名称长度不能超过 255 个字符")
	public String getBtypeName() {
		return btypeName;
	}

	public void setBtypeName(String btypeName) {
		this.btypeName = btypeName;
	}
	
	public Double getElectricity() {
		return electricity;
	}

	public void setElectricity(Double electricity) {
		this.electricity = electricity;
	}
	
	public Double getPrice() {
		return price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}
	
	@Length(min=0, max=10, message="签约年限长度不能超过 10 个字符")
	public String getYear() {
		return year;
	}

	public void setYear(String year) {
		this.year = year;
	}
	
}